package com.bw.user.mvvm.model.api;

import android.graphics.PostProcessor;

import com.bw.mvvm_comom.entity.BaseEntity;
import com.bw.user.mvvm.model.entity.UserEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface Api {
    //登录
//    http://118.195.161.134:8077/userCenter/login
    @POST("userCenter/login")
    Observable<UserEntity> requestLogin(@Body RequestBody body);

    //注册
//    http://118.195.161.134:8077/userCenter/register
    @POST("userCenter/register")
    Observable<BaseEntity> requestRegister(@Body RequestBody body);

//    找回密码短信信息验证
//    http://118.195.161.134:8077/userCenter/forgetPwd
    @POST("userCenter/forgetPwd")
    Observable<BaseEntity>requestForgetPwdUser(@Body RequestBody body);

    //重置密码
//    http://118.195.161.134:8077/userCenter/resetPwd
    @POST("userCenter/resetPwd")
    Observable<BaseEntity> requestResetPwd(@Body RequestBody body);

    //修改信息
//    http://118.195.161.134:8077/userCenter/editUser
    @POST("userCenter/editUser")
    Observable<UserEntity> requestEditUser(@Body RequestBody body);


}
